import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { UserRoutingModule } from './user-routing.module';

import { LayoutComponent } from './layout/layout.component';
import { LoginComponent } from './login/login.component';
import { RegisterComponent } from './register/register.component';
import { PhoneValidateDirective } from './register/phone-validate.directive';
import { ItemColorDirective } from './layout/item-color.directive';
import { token } from './services';
import { UserTestService } from './user-test.service';


@NgModule({
  declarations: [
    LayoutComponent,
    LoginComponent,
    RegisterComponent,
    PhoneValidateDirective,
    ItemColorDirective
  ],
  providers: [
    UserTestService,
    { provide: token, useValue: 'http://ceshi.dev.com' }
  ],
  imports: [
    CommonModule,
    FormsModule,
    UserRoutingModule
  ]
})
export class UserModule { }
